package kr.pe.johnkim.app.mobile.rest.service;

import kr.pe.johnkim.app.domain.MyHistoryLog;
import kr.pe.johnkim.app.mobile.rest.dao.MyHistoryCommonDao;
import kr.pe.johnkim.app.mobile.rest.dao.MyHistoryCommonDaoImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author : johnkim <cale9797@gmail.com / Bettersoft Inc,.>
 * @Date : 12. 2. 6
 */
public class MyHistoryCommonServiceImpl implements MyHistoryCommonService {
    // SLF4J Logging
	private Logger logger = LoggerFactory.getLogger(MyHistoryCommonServiceImpl.class);

    /**
     * My History 로그 기록을 저장 한다.
     *
     * @param myHistoryLog
     */
    @Override
    public void registerLog(MyHistoryLog myHistoryLog) {
        logger.info("registerLog");
        myHistoryCommonDao.registerLog(myHistoryLog);
    }

    /**
     * Spring Setter Injection.
     */
    private MyHistoryCommonDao myHistoryCommonDao;

    public void setMyHistoryCommonDao(MyHistoryCommonDaoImpl myHistoryCommonDao) {
        this.myHistoryCommonDao = myHistoryCommonDao;
    }
}
